package com.feri.rbacsys.service.impl.finance;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feri.rbacsys.dao.finance.DataAccountTypeDao;
import com.feri.rbacsys.entity.finance.DataAccountType;
import com.feri.rbacsys.service.intf.finance.DataAccountTypeService;
import com.feri.rbacsys.vo.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (DataAccountType)表服务实现类
 *
 * @author makejava
 * @since 2023-03-28 08:39:12
 */
@Service("dataAccountTypeService")
public class DataAccountTypeServiceImpl extends ServiceImpl<DataAccountTypeDao, DataAccountType> implements DataAccountTypeService {

    @Resource
    private DataAccountTypeDao dao;

    @Override
    public R queryPage(int page, int size) {
        QueryWrapper<DataAccountType> wrapper=new QueryWrapper<>();
        wrapper.orderByAsc("id");
        return R.ok(dao.selectPage(new Page<>(page,size),wrapper));
    }
}

